#include <stdio.h>

int rowmax = 5, colmax = 5;
int mem[5][5] = {
    {0, 1, 0, 1, 0},
    {0, 1, 0, 0, 0},
    {0, 0, 0, 1, 0},
    {0, 1, 0, 1, 0},
    {0, 1, 0, 0, 0},
};

void print_mem()
{
    int i = 0, j = 0;
    static int count_num = 0;

    count_num++;

    printf("---------- %d -----------\n", count_num);

    for (i = 0; i < rowmax; i++)
    {
        for (j = 0; j < colmax; j++)
        {
            printf("%4d", mem[i][j]);
        }
        printf("\n");
    }

    return;
}

int main()
{
    print_mem();
    print_mem();
    print_mem();

    return 0;
}